﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    public class ZhaoLu_DaoRuKaoShengModel
    {
        private bool isselected = false;
        [DataMember]
        public bool IsSelected
        {
            get { return isselected; }
            set { isselected = value; }
        }
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _MingCi;
        [DataMember]
        public int MingCi
        {
            get { return _MingCi; }
            set { _MingCi = value; }
        }

        private bool _IsFangQi = false;
        [DataMember]
        public bool IsFangQi
        {
            get { return _IsFangQi; }
            set { _IsFangQi = value; }
        }

        private int _Year;
        [DataMember]
        public int Year
        {
            get { return _Year; }
            set { _Year = value; }
        }

        private int _Month;
        [DataMember]
        public int Month
        {
            get { return _Month; }
            set { _Month = value; }
        }

        private string _ZCBH = string.Empty;
        [DataMember]
        public string ZCBH
        {
            get { return _ZCBH; }
            set { _ZCBH = value; }
        }

        private string _XingMing = string.Empty;
        [DataMember]
        public string XingMing
        {
            get { return _XingMing; }
            set { _XingMing = value; }
        }

        private string _SFZH = string.Empty;
        [DataMember]
        public string SFZH
        {
            get { return _SFZH; }
            set { _SFZH = value; }
        }

        private string _ZWID = string.Empty;
        [DataMember]
        public string ZWID
        {
            get { return _ZWID; }
            set { _ZWID = value; }
        }

        private string _ZLDW = string.Empty;
        [DataMember]
        public string ZLDW
        {
            get { return _ZLDW; }
            set { _ZLDW = value; }
        }

        private string _BBZW = string.Empty;
        [DataMember]
        public string BBZW
        {
            get { return _BBZW; }
            set { _BBZW  = value; }
        }

        private string _ZKKM = string.Empty;
        [DataMember]
        public string ZKKM
        {
            get { return _ZKKM; }
            set { _ZKKM = value; }
        }

        private string _SL = string.Empty;
        [DataMember]
        public string SL
        {
            get { return _SL; }
            set { _SL = value; }
        }

        private string _XC = string.Empty;
        [DataMember]
        public string XC
        {
            get { return _XC; }
            set { _XC = value; }
        }

        private string _ZF = string.Empty;
        [DataMember]
        public string ZF
        {
            get { return _ZF; }
            set { _ZF = value; }
        }

        private string _ZongFen = string.Empty;
        [DataMember]
        public string ZongFen
        {
            get { return _ZongFen; }
            set { _ZongFen = value; }
        }

        private string _XB = string.Empty;
        [DataMember]
        public string XB
        {
            get { return _XB; }
            set { _XB = value; }
        }

        private string _CSRQ = string.Empty;
        [DataMember]
        public string CSRQ
        {
            get { return _CSRQ; }
            set { _CSRQ = value; }
        }

        private string _JKCD = string.Empty;
        [DataMember]
        public string JKCD
        {
            get { return _JKCD; }
            set { _JKCD = value; }
        }

        private string _SG = string.Empty;
        [DataMember]
        public string SG
        {
            get { return _SG; }
            set { _SG = value; }
        }

        private string _TZ = string.Empty;
        [DataMember]
        public string TZ
        {
            get { return _TZ; }
            set { _TZ = value; }
        }

        private string _MZ = string.Empty;
        [DataMember]
        public string MZ
        {
            get { return _MZ; }
            set { _MZ = value; }
        }

        private string _HYZK = string.Empty;
        [DataMember]
        public string HYZK
        {
            get { return _HYZK; }
            set { _HYZK = value; }
        }

        private string _POXL = string.Empty;
        [DataMember]
        public string POXL
        {
            get { return _POXL; }
            set { _POXL = value; }
        }

        private string _KSSF = string.Empty;
        [DataMember]
        public string KSSF
        {
            get { return _KSSF; }
            set { _KSSF = value; }
        }

        private string _XL = string.Empty;
        [DataMember]
        public string XL
        {
            get { return _XL; }
            set { _XL = value; }
        }

        private string _ZZMM = string.Empty;
        [DataMember]
        public string ZZMM
        {
            get { return _ZZMM; }
            set { _ZZMM = value; }
        }

        private string _XW = string.Empty;
        [DataMember]
        public string XW
        {
            get { return _XW; }
            set { _XW = value; }
        }

        private string _BKBYYX = string.Empty;
        [DataMember]
        public string BKBYYX
        {
            get { return _BKBYYX; }
            set { _BKBYYX = value; }
        }

        private string _BKZY = string.Empty;
        [DataMember]
        public string BKZY
        {
            get { return _BKZY; }
            set { _BKZY = value; }
        }

        private string _BKBYSJ = string.Empty;
        [DataMember]
        public string BKBYSJ
        {
            get { return _BKBYSJ; }
            set { _BKBYSJ = value; }
        }

        private string _SSYX = string.Empty;
        [DataMember]
        public string SSYX
        {
            get { return _SSYX; }
            set { _SSYX = value; }
        }

        private string _SSZY = string.Empty;
        [DataMember]
        public string SSZY
        {
            get { return _SSZY; }
            set { _SSZY = value; }
        }

        private string _SSBYSJ = string.Empty;
        [DataMember]
        public string SSBYSJ
        {
            get { return _SSBYSJ; }
            set { _SSBYSJ = value; }
        }

        private string _BSYX = string.Empty;
        [DataMember]
        public string BSYX
        {
            get { return _BSYX; }
            set { _BSYX = value; }
        }

        private string _BSZY = string.Empty;
        [DataMember]
        public string BSZY
        {
            get { return _BSZY; }
            set { _BSZY = value; }
        }

        private string _BSBYSJ = string.Empty;
        [DataMember]
        public string BSBYSJ
        {
            get { return _BSBYSJ; }
            set { _BSBYSJ = value; }
        }
        private string _GRJL = string.Empty;
        [DataMember]
        public string GRJL
        {
            get { return _GRJL; }
            set { _GRJL = value; }
        }

        private string _TC = string.Empty;
        [DataMember]
        public string TC
        {
            get { return _TC; }
            set { _TC = value; }
        }

        private string _SXZYKC = string.Empty;
        [DataMember]
        public string SXZYKC
        {
            get { return _SXZYKC; }
            set { _SXZYKC = value; }
        }

        private string _WY1 = string.Empty;
        [DataMember]
        public string WY1
        {
            get { return _WY1; }
            set { _WY1 = value; }
        }

        private string _WY2 = string.Empty;
        [DataMember]
        public string WY2
        {
            get { return _WY2; }
            set { _WY2 = value; }
        }

        private string _WYDJ1 = string.Empty;
        [DataMember]
        public string WYDJ1
        {
            get { return _WYDJ1; }
            set { _WYDJ1 = value; }
        }

        private string _WYDJ2 = string.Empty;
        [DataMember]
        public string WYDJ2
        {
            get { return _WYDJ2; }
            set { _WYDJ2 = value; }
        }

        private string _JSJSP = string.Empty;
        [DataMember]
        public string JSJSP
        {
            get { return _JSJSP; }
            set { _JSJSP = value; }
        }

        private string _TXDZ = string.Empty;
        [DataMember]
        public string TXDZ
        {
            get { return _TXDZ; }
            set { _TXDZ = value; }
        }

        private string _LXFS = string.Empty;
        [DataMember]
        public string LXFS
        {
            get { return _LXFS; }
            set { _LXFS = value; }
        }

        private string _SJHM = string.Empty;
        [DataMember]
        public string SJHM
        {
            get { return _SJHM; }
            set { _SJHM = value; }
        }

        private string _GZDW = string.Empty;
        [DataMember]
        public string GZDW
        {
            get { return _GZDW; }
            set { _GZDW = value; }
        }

        private string _GZNX = string.Empty;
        [DataMember]
        public string GZNX
        {
            get { return _GZNX; }
            set { _GZNX = value; }
        }

        private string _BYSJB = string.Empty;
        [DataMember]
        public string BYSJB
        {
            get { return _BYSJB; }
            set { _BYSJB = value; }
        }

        private string _SY = string.Empty;
        [DataMember]
        public string SY
        {
            get { return _SY; }
            set { _SY = value; }
        }

        private string _HJ = string.Empty;
        [DataMember]
        public string HJ
        {
            get { return _HJ; }
            set { _HJ = value; }
        }

        private string _YB = string.Empty;
        [DataMember]
        public string YB
        {
            get { return _YB; }
            set { _YB = value; }
        }

        private DateTime? _AddDay;
        [DataMember]
        public DateTime? AddDay
        {
            get { return _AddDay; }
            set { _AddDay = value; }
        }

        private string _YRBM = string.Empty;
        [DataMember]
        public string YRBM
        {
            get { return _YRBM; }
            set { _YRBM = value; }
        }
        private int _Sec = 0;
        [DataMember]
        public int Sec
        {
            get { return _Sec; }
            set { _Sec = value; }
        }

        private string _FangQiHuanJie = string.Empty;
        [DataMember]
        public string FangQiHuanJie
        {
            get { return _FangQiHuanJie; }
            set { _FangQiHuanJie = value; }
        }

        private decimal? _MianShiScore = 0;
        [DataMember]
        public decimal? MianShiScore
        {
            get { return _MianShiScore; }
            set { _MianShiScore = value; }
        }
        private decimal? _TotalScore = 0;
        [DataMember]
        public decimal? TotalScore
        {
            get { return _TotalScore; }
            set { _TotalScore = value; }
        }

        private string _IsTongYi;
        [DataMember]
        public string IsTongYi
        {
            get { return _IsTongYi; }
            set { _IsTongYi = value; }
        }

        private string _TiJianResult;
        [DataMember]
        public string TiJianResult
        {
            get { return _TiJianResult; }
            set { _TiJianResult = value; }
        }

        private string _ZhengShenResult;
        [DataMember]
        public string ZhengShenResult
        {
            get { return _ZhengShenResult; }
            set { _ZhengShenResult = value; }
        }

        public static ZhaoLu_DaoRuKaoShengModel FillEntity(DataRow dr)
        {
            ZhaoLu_DaoRuKaoShengModel right = new ZhaoLu_DaoRuKaoShengModel();
            if (dr.Table != null && dr.Table.Columns.Contains("IsSelected")) right.IsSelected = dr["IsSelected"].ToString() == "false" ? false : true;
            if (dr.Table != null && dr.Table.Columns.Contains("FangQiHuanJie")) right.FangQiHuanJie = dr["FangQiHuanJie"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ID")) right.ID = Convert.ToInt32(dr["ID"]);
            if (dr.Table != null && dr.Table.Columns.Contains("MingCi")) right.MingCi = Convert.ToInt32(dr["MingCi"]);
            if (dr.Table != null && dr.Table.Columns.Contains("Sec")) right.Sec = Convert.ToInt32(dr["Sec"]);
            if (dr.Table != null && dr.Table.Columns.Contains("Year")) right.Year = Convert.ToInt32(dr["Year"]);
            if (dr.Table != null && dr.Table.Columns.Contains("Month")) right.Month = Convert.ToInt32(dr["Month"]);
            if (dr.Table != null && dr.Table.Columns.Contains("ZCBH"))  right.ZCBH = dr["ZCBH"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("XingMing")) right.XingMing = dr["XingMing"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SFZH")) right.SFZH = dr["SFZH"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZWID")) right.ZWID = dr["ZWID"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZLDW")) right.ZLDW = dr["ZLDW"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BBZW")) right.BBZW = dr["BBZW"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZKKM")) right.ZKKM = dr["ZKKM"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SL")) right.SL = dr["SL"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("XC")) right.XC = dr["XC"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZF")) right.ZF = dr["ZF"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZongFen")) right.ZongFen = dr["ZongFen"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("XB")) right.XB = dr["XB"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("CSRQ")) right.CSRQ = dr["CSRQ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("JKCD")) right.JKCD = dr["JKCD"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("SG")) right.SG = dr["SG"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("TZ")) right.TZ = dr["TZ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("MZ")) right.MZ = dr["MZ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("HYZK")) right.HYZK = dr["HYZK"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("POXL")) right.POXL = dr["POXL"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("KSSF")) right.KSSF = dr["KSSF"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("XL")) right.XL = dr["XL"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("ZZMM")) right.ZZMM = dr["ZZMM"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("XW")) right.XW = dr["XW"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BKBYYX")) right.BKBYYX = dr["BKBYYX"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BKZY")) right.BKZY = dr["BKZY"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BKBYSJ")) right.BKBYSJ = dr["BKBYSJ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SSYX")) right.SSYX = dr["SSYX"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SSZY")) right.SSZY = dr["SSZY"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("SSBYSJ")) right.SSBYSJ = dr["SSBYSJ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BSYX")) right.BSYX = dr["BSYX"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BSZY")) right.BSZY = dr["BSZY"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BSBYSJ")) right.BSBYSJ = dr["BSBYSJ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("GRJL")) right.GRJL = dr["GRJL"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("TC")) right.TC = dr["TC"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SXZYKC")) right.SXZYKC = dr["SXZYKC"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("WY1")) right.WY1 = dr["WY1"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("WY2")) right.WY2 = dr["WY2"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("WYDJ1")) right.WYDJ1 = dr["WYDJ1"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("WYDJ2")) right.WYDJ2 = dr["WYDJ2"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("JSJSP")) right.JSJSP = dr["JSJSP"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("TXDZ")) right.TXDZ = dr["TXDZ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("LXFS")) right.LXFS = dr["LXFS"].ToString();

            if (dr.Table != null && dr.Table.Columns.Contains("SJHM")) right.SJHM = dr["SJHM"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("GZDW")) right.GZDW = dr["GZDW"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("GZNX")) right.GZNX = dr["GZNX"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("BYSJB")) right.BYSJB = dr["BYSJB"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("SY")) right.SY = dr["SY"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("HJ")) right.HJ = dr["HJ"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("YB")) right.YB = dr["YB"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("YRBM")) right.YRBM = dr["YRBM"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("IsTongYi")) right.IsTongYi = dr["IsTongYi"] as string;
            if (dr.Table != null && dr.Table.Columns.Contains("AddDay")) right.AddDay = Convert.ToDateTime(dr["AddDay"]);
            if (dr.Table != null && dr.Table.Columns.Contains("IsFangQi")) if (!string.IsNullOrEmpty(dr["IsFangQi"].ToString())) right.IsFangQi = Convert.ToBoolean(dr["IsFangQi"]);
            if (dr.Table != null && dr.Table.Columns.Contains("MianShiScore")) if (!string.IsNullOrEmpty(dr["MianShiScore"].ToString())) right.MianShiScore = Convert.ToDecimal(dr["MianShiScore"]);
            if (dr.Table != null && dr.Table.Columns.Contains("TotalScore")) if (!string.IsNullOrEmpty(dr["TotalScore"].ToString())) right.TotalScore = Convert.ToDecimal(dr["TotalScore"]);
            if (dr.Table != null && dr.Table.Columns.Contains("TiJianResult")) right.TiJianResult = dr["TiJianResult"].ToString();
            if (dr.Table != null && dr.Table.Columns.Contains("ZhengShenResult")) right.ZhengShenResult = dr["ZhengShenResult"].ToString();
            return right;
        }
    }
}
